<template>
  <div class="parent">
    <children1 ref="children" ></children1>
    <button @click="edit">父组件</button>
  </div>
</template>

<script>
    import Children1 from "./Children1";
    export default {
        name: "Father1",
      components: {Children1},
      data(){
        return{}
      },
      methods:{
          edit(){
            this.$refs.children.save()
          }
      }
    }

</script>

<style scoped>

</style>
